import request from "@/utils/request";

// 查询考核周期列表
export function listCheckCycle(query) {
  return request({
    url: "/cld/checkCycle/list",
    method: "get",
    params: query,
  });
}

// 查询考核周期详细
export function getCheckCycle(cycleId) {
  return request({
    url: "/cld/checkCycle/" + cycleId,
    method: "get",
  });
}

// 新增考核周期
export function addCheckCycle(data) {
  return request({
    url: "/cld/checkCycle",
    method: "post",
    data: data,
  });
}

// 修改考核周期
export function updateCheckCycle(data) {
  return request({
    url: "/cld/checkCycle",
    method: "put",
    data: data,
  });
}

// 删除考核周期
export function delCheckCycle(cycleId) {
  return request({
    url: "/cld/checkCycle/" + cycleId,
    method: "delete",
  });
}

// 查询考核周期列表
export function getCheckCycleList(query) {
  return request({
    url: "/cld/checkCycle/getList",
    method: "get",
    params: query,
  });
}
